package com.rfid.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rfid.common.annotation.Excel;
import com.rfid.common.core.domain.BaseEntity;

/**
 * 产品信息对象 t_product_info
 *
 * @author fangchen
 * @date 2020-12-06
 */
public class TProductInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;


    private Long id;

    /**
     * 产品编号
     */
    //@Excel(name = "产品编号")
    private String productNo;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String productName;

    /**
     * 产品类型编号
     */
    @Excel(name = "产品类型")
    private Long productCode;

    /**
     * 最后序列号
     */
    //@Excel(name = "最后序列号")
    private String lastSerialNum;

    /**
     * 外部编号
     */
    //@Excel(name = "外部编号")
    private String outNum;

    /**
     * 预留字段,保存格式为json字段
     */
    //@Excel(name = "预留字段,保存格式为json字段")
    private String field;

    private String nameAndNo;

    /**
     * 成品数量
     */
    private Integer itemNum;

    private String epc;

    private String itemNO;

    private String uuids;

    //产品数量
    private String productNum;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductCode(Long productCode) {
        this.productCode = productCode;
    }

    public Long getProductCode() {
        return productCode;
    }

    public void setLastSerialNum(String lastSerialNum) {
        this.lastSerialNum = lastSerialNum;
    }

    public String getLastSerialNum() {
        return lastSerialNum;
    }

    public void setOutNum(String outNum) {
        this.outNum = outNum;
    }

    public String getOutNum() {
        return outNum;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getField() {
        return field;
    }

    public String getNameAndNo() {
        return nameAndNo;
    }

    public void setNameAndNo(String nameAndNo) {
        this.nameAndNo =nameAndNo;
    }

    public Integer getItemNum() {
        return itemNum;
    }

    public void setItemNum(Integer itemNum) {
        this.itemNum = itemNum;
    }

    public String getEpc() {
        return epc;
    }

    public void setEpc(String epc) {
        this.epc = epc;
    }

    public String getItemNO() {
        return itemNO;
    }

    public void setItemNO(String itemNO) {
        this.itemNO = itemNO;
    }

    public String getUuids() {
        return uuids;
    }

    public void setUuids(String uuids) {
        this.uuids = uuids;
    }

    public String getProductNum() {
        return productNum;
    }

    public void setProductNum(String productNum) {
        this.productNum = productNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("productNo", getProductNo())
                .append("productName", getProductName())
                .append("productCode", getProductCode())
                .append("lastSerialNum", getLastSerialNum())
                .append("outNum", getOutNum())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("field", getField())
                .toString();
    }
}
